package com.open.cloud.rbac.mapper.role;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.open.cloud.rbac.entity.role.CoreRole;
import com.open.cloud.rbac.object.role.CoreRoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author wangzengzhou01
 * @since 2024-12-23
 */
@Mapper
public interface CoreRoleMapper extends BaseMapper<CoreRole> {

    /**
     * 分页查询权限
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    public IPage<CoreRoleVo> selectRoleByPage(@Param("page") IPage<CoreRole> page,
                                              @Param(Constants.WRAPPER) Wrapper<CoreRole> queryWrapper);


}
